package com.springboot.cloud.sysadmin.organization.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.springboot.cloud.common.core.entity.vo.TreeNode;
import com.springboot.cloud.common.web.entity.po.BasePo;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Objects;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@ApiModel
@Data
@Builder
@NoArgsConstructor(force=true)
@AllArgsConstructor
@TableName("dept")
public class Dept extends BasePo {

    private String ancestors;
    private String parentId;
    private String name;
    private String description;
    @TableLogic
    private String deleted = "N";
    private String status;
    private Integer orderNum;
    private String leader;
    private String phone;
    private String email;
    private String avatar;
    private Integer subCount;
    private Integer deptSort;
    @TableField(exist = false)
    private List<Dept> children;

}
